import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 简单的全局错误处理
const app = createApp(App);
app.use(ElementPlus)
app.use(router);

// 全局错误捕获
app.config.errorHandler = (err, instance, info) => {
  console.error('全局错误:', err, info);
};

app.mount('#app');
